<template>
  <div class="Find">
    <find-nav></find-nav>
    <div class="findCategory">
      <div class="category"><img src="~/assets/img/find/分类.svg"></div>
      <router-link class="recommend" to="/find/recommendation" active-class="active" replace><img src="~/assets/img/find/热门.svg"><div>热门推荐</div></router-link>
      <router-link class="tourCircle" to="/find/tourCircle" active-class="active" replace><img src="~/assets/img/find/相机.svg"><div>旅游圈</div></router-link>
      <div class="search"><img src="~/assets/img/find/搜索.svg"></div>
    </div>
    <div class="recommendation"><router-view></router-view></div>
  </div>
</template>
  
<script>
  import FindNav from './findChild/Find_Nav.vue'
  import findCategory from './findChild/findCategory.vue'
  export default {
    name: "Find",
    components: {
      FindNav,
      findCategory,
    },
    methods: {

    },
  }
</script>

<style scoped>
.findCategory {
    display: flex;
    position: fixed;
    top: 44px;
    width: 100%;
    height: 40px;
    background-color: #B1D3ee;
}
/* 分类样式 */
.category {
    flex: 1;
    padding: 5px;
}
.category img {
    height: 100%;
    text-align: center;
}
/* 热门推荐样式 */
.recommend {
    flex: 2;
}
.recommend img {
    width:30px;
    height: 100%;
    padding-left: 10px;
}
.recommend div {
    float: right;
    height: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 20px;
    color: #fff;
}
/* 旅游圈样式 */
.tourCircle {
    flex: 2;
    /* border-radius: 20px; */
}
.tourCircle img {
    width:20px;
    height: 100%;
    margin-left: 25px;
    margin-right: 0;
}
.tourCircle div {
    float: right;
    height: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 20px;
    padding-left: 0px;
    color: #fff;
}
/* 搜索框样式 */
.search {
    flex: 1;
    padding: 7px;
    text-align: right;
}
.search img {
    height: 100%;
}

.active{
  background-color: #8DC1E9;
  border-radius: 20px;
}
</style>
